package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.B_GZDao;
import com.zhongchaowuye.pojo.B_GZ;
import com.zhongchaowuye.service.B_GZService;

@Transactional
@Service("b_GZService")
public class B_GZServiceImpl implements B_GZService
{
	@Resource
	B_GZDao b_GZDao;
	
	@Override
	public int insertB_GZ(B_GZ b_GZ) {
		// TODO Auto-generated method stub
		return b_GZDao.insertB_GZ(b_GZ);
	}

	@Override
	public int updateB_GZ(B_GZ b_GZ) {
		// TODO Auto-generated method stub
		return b_GZDao.updateB_GZ(b_GZ);
	}

	@Override
	public int delB_GZ(B_GZ b_GZ) {
		// TODO Auto-generated method stub
		return b_GZDao.delB_GZ(b_GZ);
	}
	
	@Override
	public B_GZ getB_GZ(B_GZ b_GZ) {
		// TODO Auto-generated method stub
		return b_GZDao.getB_GZ(b_GZ);
	}
	
	@Override
	public List<Map<String, Object>> getB_GZList(B_GZ b_GZ) {
		// TODO Auto-generated method stub
		PageHelper.startPage(b_GZ.getPageIndex(),b_GZ.getPageSize(),true);
		return b_GZDao.getB_GZList(b_GZ);
	}

	@Override
	public List<Map<String, Object>> getTjxx(B_GZ b_GZ) {
		// TODO Auto-generated method stub
		return b_GZDao.getTjxx(b_GZ);
	}
}
